package platform.server.common.resp;

/**
 * @Title: RespBody
 * @ProjectName com-bigwavn-group
 * @Description: TODO
 * @author: wangweitao wangweitao@leadeon.cn
 * @date: 2019/8/14 16:09
 * @version: V1.0.0
 */
public class RespBody {

    // 统一返回状态码0000(成功)9999(失败)
    private String respCode;
    // 统一返回数据
    private Object respData;

    public static RespBody creat(Object result){
        return RespBody.creat(result,"0000");
    }
    public static RespBody creat(Object result,String respCode){
        RespBody respBody = new RespBody();
        respBody.setRespCode(respCode);
        respBody.setRespData(respBody);
        return respBody;
    }
    public String getRespCode() {
        return respCode;
    }

    public void setRespCode(String respCode) {
        this.respCode = respCode;
    }

    public Object getRespData() {
        return respData;
    }

    public void setRespData(Object respData) {
        this.respData = respData;
    }
}
